package com.zhiyou.app.pojo.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

@Accessors(chain = true)
@Data
@ApiModel("订单创建参数")
public class OrderCreateRequestVo {
    @ApiModelProperty(hidden = true)
    @JsonIgnore
    private String clientIP;
    @ApiModelProperty("商品编码，BASICID、HDID可选，记得顺序")
    private List<String> goodsCodes;
    @ApiModelProperty("任务执行参数，线下确认")
    private IdPhotoOrderParam idPhotoOrderBindParam;
    @ApiModelProperty(hidden = true)
    @JsonIgnore
    private Map<String, Object> bindParam;

    @ApiModel("证件照订单参数")
    @Data
    public static class IdPhotoOrderParam {
        @ApiModelProperty("商品编码")
        private String photoUrl;
        @ApiModelProperty("颜色Key")
        private String color;
        @ApiModelProperty("尺寸Key")
        private String size;
    }
}
